﻿//-----------------------------------------------------------------------
// <copyright file="Program.cs" company="DylanBox">
// Copyright (c) DylanBox Corporation. All rights reserved.
// </copyright>
// <summary></summary>
// <reference>
//  client which will use wcf hosted in Console
//    1. make proxy class "IService.CS" and "app.config"
//　　　　"svcutil  http://localhost:8732/WcfLibDemo/Service/"
//　　2. Add these files to client app;
//　　3. Code
// </reference>
// <author>Dylan</author>
//-----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WcfLib;

namespace ClientTargetConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            DemoServiceClient client = new DemoServiceClient();

            string val = client.GetData(1);

            CompositeType ct = new CompositeType();
            ct.BoolValue = true;
            ct.StringValue = "OK";

            CompositeType af = client.GetDataUsingDataContract(ct);

            ct.BoolValue = false;
            af = client.GetDataUsingDataContract(ct);
        }
    }
}
